package tn.redmine.tests;

import org.testng.annotations.BeforeSuite;
import org.testng.annotations.BeforeTest;

import tn.redmine.pages.IndexPage;
import core.base.TestBase;

/**
 * Class contains test methods for Index page
 */
public class RedmineTestBase extends TestBase
{
	@BeforeSuite
	public void config()
	{
		pilot.configurator()
				.setPlatform("web")
				.setOS("win7")
				.setBrowser("chrome")
				.setProxy("def");
	}

	@BeforeTest()
	public void login()
	{
		pilot.driver().openURL("https://redmine.togethernetworks.com/");

		if (!IndexPage.isLoggedIn())
		{
			IndexPage.login();
		}
	}
}
